
import Relay from "react-relay";
export default class ProductionNumberDetail extends Relay.Mutation {

    getMutation() {
        return Relay.QL`mutation { getProNumDetailList }`;
    }

    getVariables() {
        return {
            argsInput: {
                pdId:this.props.pdId,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getProNumDetailListPayload {
            responseData {
              value
              errorCode
              proNumDetailModelList{
                compact5XL
                compact4XL
                compact3XL
                addS
                compact2XL
                imgURL
                colour
                addL
                addM
                add5XL
                addXS
                addTotal
                pdId
                compactXS
                compactS
                addXL
                add2XL
                compactXL
                compactTotal
                add4XL
                add3XL
                compactL
                compactM
                numberDetailId
                PONumber
                remark
                totalXS
                totalS
                totalM
                totalL
                totalXL
                total2XL
                total3XL
                total4XL
                total5XL
                itemTotal
              }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL` fragment on getProNumDetailListPayload  {
                    responseData {
                      value
                      errorCode
                      proNumDetailModelList{
                        compact5XL
                        compact4XL
                        compact3XL
                        addS
                        compact2XL
                        imgURL
                        colour
                        addL
                        addM
                        add5XL
                        addXS
                        addTotal
                        pdId
                        compactXS
                        compactS
                        addXL
                        add2XL
                        compactXL
                        compactTotal
                        add4XL
                        add3XL
                        compactL
                        compactM
                        numberDetailId
                        PONumber
                        remark
                        totalXS
                        totalS
                        totalM
                        totalL
                        totalXL
                        total2XL
                        total3XL
                        total4XL
                        total5XL
                        itemTotal
                      }
                    }
                 }
            `]
        }];
    }

}
/**
 * Created by yoyoyk on 2017/5/10.
 */
